package io.renren.modules.reception.entity;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.*;

import io.renren.modules.reception.entity.vo.FoodVo;
import io.renren.modules.reception.entity.vo.PayVo;
import io.renren.modules.store.entity.TStoreDiningTableEntity;
import lombok.Data;

/**
 * 
 * 
 * @author steakliu
 * @email 2319492349@qq.com
 * @date 2021-02-09 13:23:50
 */
@Data
@TableName("t_store_order_record")
public class TStoreOrderRecordEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	private Long id;

	/**
	 * 订单ID
	 */
	private String orderId;

	//餐桌ID
	@TableField(exist = false)
	private Long deskId;
	/**
	 * 桌号
	 */
	private String diningTableNo;
	/**
	 * 租户
	 */
	private Long sellerId;
	/**
	 * 用餐人数
	 */
	private Integer eatNumer;
	/**
	 * 总价
	 */
	private Double totalMoney;
	/**
	 * 折后价
	 */
	private String openDeskRemark;

	private String staffName;

	private String deskAnotherName;
	/**
	 * 开台时间
	 */
	private Date openTime;
	//结账时间
	private Date endTime;

	//操作员
	private String createUserName;
	/**
	 * 挂账单位
	 */
	private Long accountId;
	/**
	 * 折扣
	 */
	private Double discount;

	private Integer status;
	/**
	 * 会员
	 */
	private Long memberId;

	private Long discountId;

	//找零
	private Double zero;
	//
	private Double wipeZero;

	@TableField(exist = false)
	private Long memberTypeId;
	/**
	 * 支付方式
	 */
	private String payMethodName;

	//支付集合
	@TableField(exist = false)
	private List<PayVo> payVo = new ArrayList<>();

	@TableField(exist = false)
	private Long  payMethodId;

	/**
	 * 实收
	 */
	private Double reallyGet;
	/**
	 * 菜品信息
	 */
	@TableField(exist = false)
	private List<FoodVo> foodVos = new ArrayList<>();

	private String foodVo;
	/**
	 * 备注
	 */
	private String remark;


	@TableField(exist = false)
	private TStoreDiningTableEntity openDeskInfo;

}
